package com.dubbo.provider;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class Provider {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("provider.xml");
        System.out.print(ac.getDisplayName() + ":here");
        ((ClassPathXmlApplicationContext) ac).start();
        System.out.print("服务已经启动......");
        System.in.read();
    }
}
